package com.main.service;

import java.util.Map;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import com.generico.exception.AsiWebException;
import com.main.java.DocumentoAdjunto;

public interface DocumentoAdjuntoService {

	@Transactional(propagation = Propagation.REQUIRES_NEW, readOnly = false, rollbackFor = {
			Exception.class, AsiWebException.class })
	public abstract Map<String, Object> upload(
			DocumentoAdjunto documentoAdjunto, Long UploadMaxSize,
			CommonsMultipartFile uploadFile) throws AsiWebException;

	public abstract void uploadBlob(CommonsMultipartFile uploadFile,
			Long documentoAdjuntoId, String tipoDigitalizacion) throws AsiWebException;

}